Skip to main content

AWSS3DeleteObject

Type

command

Summary

Delete an object

Syntax

AWSS3DeleteObject <pBucket>,<pObject>,<pCallback>

Description

The caller of this command will be sent the callback message on completion with two parameters:

  • the request ID
  • the server response which should be empty
  • an error message if one occurred

For futher details about this API see the AWS S3 REST API Documentation

note

The message is sent before the tsNet connection is closed so it is possible to access the recieved headers using the tsNetRetrHeaders function

Parameters

NameTypeDescription

pBucket

The name of a bucket

pObject

The name (key) of the object

pCallback

A command name to be sent on completion with the server reponse.

Examples

AWSS3DeleteObject "mybucket", "myobject", "deleteObjectCallback"

on deleteObjectCallback pRequestID, pResult, pError
if pError is not empty then
answer pError
end if
end deleteObjectCallback

function: tsNetGetStatus, tsNetRetrHeaders

library: tsNet